﻿using System;
using System.ComponentModel;
using System.Globalization;

namespace Useful
{
    public class DecimalTypeConverter : DecimalConverter
    {
        public override object ConvertTo(ITypeDescriptorContext context,
          CultureInfo culture,
          object value,
          Type destType)
        {
            return ((decimal)value).ToString("F2");
        }
    }
}
